package com.ltsh.fim.common.utils;


/**
 * Created by fengjianbo on 2018/5/24 0024.
 */
public class Constant {


//    public static final String DELIMITER_STR = "$$_##";
    /**
     * netty 传输分隔符
     */
    public static final String DELIMITER_STR = "\r\n";
    public static final byte[] DELIMITER = DELIMITER_STR.getBytes();
    /**
     * 传输编码
     */
    public static final String CHARSET_NAME = "utf-8";

    /**
     * 最大传输数据大小 8M
     */
    public final static int MAX_OBJECT_SIZE = 8 * 1024 * 1024;

    public final static int HEADER_LENGTH = 16;


    public static final byte[] SEPARATOR = System.getProperty("line.separator").getBytes();
    public static final int SEPARATOR_LENGTH = SEPARATOR.length;
}
